package cn.ee.dfs.lotto.service;

import cn.ee.dfs.lotto.lottery.SuperLottery;

import cn.ee.dfs.common.entity.QueryRequest;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * 大乐透 Service接口
 *
 * @author TWJ
 * @date 2024-02-04 16:18:29
 */
public interface ISuperLotteryService extends IService<SuperLottery> {
    /**
     * 查询（分页）
     *
     * @param request QueryRequest
     * @param superLottery superLottery
     * @return IPage<SuperLottery>
     */
    IPage<SuperLottery> findSuperLotterys(QueryRequest request, SuperLottery superLottery);

    /**
     * 查询（所有）
     *
     * @param superLottery superLottery
     * @return List<SuperLottery>
     */
    List<SuperLottery> findSuperLotterys(SuperLottery superLottery);

    /**
     * 新增
     *
     * @param superLottery superLottery
     */
    void createSuperLottery(SuperLottery superLottery);

    /**
     * 修改
     *
     * @param superLottery superLottery
     */
    void updateSuperLottery(SuperLottery superLottery);

    /**
     * 删除
     *
     * @param superLottery superLottery
     */
    void deleteSuperLottery(SuperLottery superLottery);

    /**
     * 更新大乐透数据
     * @param queryParam
     */
    void pullSuperLotteryData(Map<String, Object> queryParam);

    /**
     * 拆分大乐透红蓝数据
     * @param queryParam
     */
    void splitLotteryData(Map<String,Object> queryParam);

    void updateCurrentLotteryData(int count);

}
